package com.example.b_308.myapplication.controller;

import com.example.b_308.myapplication.controller.base.BaseController;
import com.example.b_308.myapplication.model.Staff;
import com.example.b_308.myapplication.view.main.Base.IMessageView;
import com.example.b_308.myapplication.model.been.MessageBeen;

import java.util.ArrayList;
import java.util.List;
import java.util.zip.Inflater;

/**
 * Created by B-308 on 2017/11/22.
 */
public class MessageController extends BaseController {
    IMessageView iMessageView;
    Inflater inflater;

    public MessageController(IMessageView iMessageView) {
        this.iMessageView = iMessageView;
    }

    public void getList(){
        iMessageView.onRequestListSuccess(paraseList());
    }
    private List<MessageBeen> paraseList(){
        List<MessageBeen> list = new ArrayList();
        MessageBeen messageBeen;
        for(int i= 0; i<100; i++){
            messageBeen = new MessageBeen(new Staff("你好"+i,"程序员"),"nihaom","ganggang");
            list.add(messageBeen);
        }
        return list;
    }
}
